package com.frikinet.lifeguard.gui;

import java.awt.BorderLayout;
import java.util.HashMap;
import java.util.Map;

import javax.swing.JPanel;

public class HomeHtmlPanel extends JPanel
{
	private static final long serialVersionUID = 1L;
	
	private TemplateHtmlPanel htmlPanel;
	
	public HomeHtmlPanel()
	{
		super(new BorderLayout());
		
		buildGUI();
		
		show();
	}
	
	private void buildGUI()
	{
		htmlPanel = new TemplateHtmlPanel();
		add(htmlPanel, BorderLayout.CENTER);
	}

	public void show()
	{
		Map<String, Object> context = new HashMap<String, Object>();
		htmlPanel.navigate("home", context);
	}
}
